package com.sunrise.xdoc.entity.store;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "store_chi_tiet_kho")
@Inheritance(strategy = InheritanceType.JOINED)
public class ChiTietKho extends AbstractChiTietKho {
	private Kho kho;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "kho_id")
	@NotNull
	public Kho getKho() {
		return kho;
	}

	public void setKho(Kho kho) {
		this.kho = kho;
	}

}
